/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question1.inheritance.service.impl;

import za.ac.cput.pretorius.question1.inheritance.model.Vehicle;
import za.ac.cput.pretorius.question1.inheritance.service.ResetOdometerService;

/**
 *
 * @author griddy
 */
public class ResetOdometerServiceImpl implements ResetOdometerService{

    @Override
    public boolean resetOdometerReading(Vehicle v) {
        
        
        if(v.equals(null))
            return false;
        else
        {
            v.clearOdometerReading();
            return true;
        }
            
    }
    
}
